<template>
    <div style="margin-top: 80px">
        <div>
            <el-carousel :interval="3000" height="800px">
                <el-carousel-item v-for="item in images" :key="item.src">
                    <img :src="item.src" style="height:100%;width:70%;margin-left: 15%"/>
                </el-carousel-item>
            </el-carousel>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Home",
        data() {
            return {
                images: [
                    {
                        src: require("../assets/test1.jpg")
                    },
                    {
                        src: require("../assets/test2.jpg")
                    },
                    {
                        src: require("../assets/test3.jpg")
                    },
                    {
                        src: require("../assets/test4.jpg")
                    }
                ]
            }
        }
    }
</script>

<style>
    .el-carousel__item h3 {
        color: #475669;
        font-size: 14px;
        opacity: 0.75;
        line-height: 150px;
        margin: 0;
    }

</style>